package com.langchain4j.simple.service;

import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.UserMessage;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName ChatPersistenceAssistant
 * @Description TODO
 * @createTime 17:57:00 2025/07/31
 */
public interface ChatPersistenceAssistant {

    /**
     * 聊天
     * @param userId 用户ID
     * @param message 消息
     * @return
     */
    String chat(@MemoryId Long userId,@UserMessage String message);
}
